package com.dminvoicemanager.tabs;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import com.dminvoicemanager.R;
import android.app.TabActivity;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.TabHost;
import android.widget.Toast;
import android.widget.TabHost.TabSpec;

public class DM_Retailer_Info_Main_Tabs extends TabActivity {
	private static final String TAG = null;
	String TagIdRetailer;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dm_retailer_info_maintabs);
	
		TabHost tabHost = getTabHost();

		// Tab for Display accounts
		TabSpec retInfo = tabHost.newTabSpec("Retailer");
		retInfo.setIndicator("Retailer", getResources()
				.getDrawable(R.drawable.exit));
		Intent photosIntent = new Intent(this, DM_Retailer_Information.class);
		retInfo.setContent(photosIntent);

		// Tab for add new account
		TabSpec merchInfo = tabHost.newTabSpec("Merchant");
		// setting Title and Icon for the Tab
		merchInfo.setIndicator("Merchant",
				getResources().getDrawable(R.drawable.exit));
		Intent songsIntent = new Intent(this,
				DM_Merchandising_Information.class);
		merchInfo.setContent(songsIntent);

		// Tab for display accounts reports
		TabSpec retoutInfo = tabHost.newTabSpec("Outstand");
		retoutInfo.setIndicator("Outstand",
				getResources().getDrawable(R.drawable.exit));
		Intent videosIntent = new Intent(this,
				DM_RetOutstanding_Information.class);
		videosIntent.putExtra("TAGID", "TAB");
		retoutInfo.setContent(videosIntent);

		// Adding all TabSpec to TabHost
		tabHost.addTab(retInfo); // Display Retailer Information tab
		tabHost.addTab(merchInfo); // Display Merchandising Information tab
		tabHost.addTab(retoutInfo); // Display Outstanding Information tab
	}
	@Override
	public void onBackPressed() {
		// Do Here what ever you want do on back press;
	}
}
